import { axios } from '@/utils/request'

const api = {
  psFileTag: '/psing/file/tag'
}

export function getPsFileTagList (parameter) {
  return axios({
    url: api.psFileTag + '/list',
    method: 'get',
    params: parameter
  })
}

export function savePsFileTag (parameter) {
  return axios({
    url: api.psFileTag + (parameter.fileId > 0 ? '/update' : '/save'),
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

export function delPsFileTag (parameter) {
  return axios({
    url: api.psFileTag + '/remove',
    method: 'post',
    params: parameter
  })
}

export const psFileTagExport = api.psFileTag + '/export'
